package a07_responsibilityChainPattern;

public abstract class BugHandler {
	// 后继责任者
	private BugHandler successor;

	abstract void handle(int bugLevel);

	/**
	 * @return the successor
	 */
	public BugHandler getSuccessor() {
		return successor;
	}

	/**
	 * @param successor
	 *            the successor to set
	 */
	public void setSuccessor(BugHandler successor) {
		this.successor = successor;
	}

}
